package com.example.springboottest.student.service;

public interface LockService {
    /**
     * 获取分布式锁
     *
     * @param lockKey
     * @return
     */
    boolean getDistributeLock(String lockKey);

    /**
     * 释放分布式锁
     *
     * @param lockKey
     * @param requestId
     * @return
     */
    boolean releaseDistributedLock(String lockKey, String requestId);
}